home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-08-17 | 20.1 KB | 562 lines | [TEXT/MPS ] |
- ;
- ; File: FinderRegistry.a
- ;
- ; Contains: Data types for Finder AppleEvents
- ;
- ; Version: Technology: Mac OS 8
- ; Release: Universal Interfaces 3.2
- ;
- ; Copyright: © 1985-1998 by Apple Computer, Inc., all rights reserved.
- ;
- ; Bugs?: For bug reports, consult the following page on
- ; the World Wide Web:
- ;
- ; http://developer.apple.com/bugreporter/
- ;
- ;
- IF &TYPE('__FINDERREGISTRY__') = 'UNDEFINED' THEN
- __FINDERREGISTRY__ SET 1
-
- IF &TYPE('__AEREGISTRY__') = 'UNDEFINED' THEN
- include 'AERegistry.a'
- ENDIF
- IF &TYPE('__OSA__') = 'UNDEFINED' THEN
- include 'OSA.a'
- ENDIF
-
-
-
- ; //////////////////////////////////////
- ; Finder Suite
- ; //////////////////////////////////////
-
-
-
-
- ; The old Finder Event suite was 'FNDR'
- ; The new suite is 'fndr'
-
-
-
- kAEFinderSuite EQU 'fndr'
-
- ; //////////////////////////////////////
- ; Finder Events
- ; //////////////////////////////////////
-
-
-
- kAECleanUp EQU 'fclu'
- kAEEject EQU 'ejct'
- kAEEmpty EQU 'empt'
- kAEErase EQU 'fera'
- kAEGestalt EQU 'gstl'
- kAEPutAway EQU 'ptwy'
- kAERebuildDesktopDB EQU 'rddb'
- kAESync EQU 'fupd'
- kAEInterceptOpen EQU 'fopn'
- ; "Sort" from the database suite:
-
- kAEDatabaseSuite EQU 'DATA'
- kAESort EQU 'SORT'
-
- ; ////////////////////////////////////////////////////////////////////////
- ; Classes
- ; Note: all classes are defined up front so that the property definitions
- ; can reference classes.
- ; ////////////////////////////////////////////////////////////////////////
-
-
-
-
- cInternalFinderObject EQU 'obj ' ; cReference - used to distinguish objects used inside the Finder only
-
- ; Main Finder class definitions
- ; Indentation implies object model hierarchy
-
-
-
- ; We do not use class cItem from AERegistry.r. Instead our class Item is a cObject //•• BREADCRUMB pmc - WHY??
- ; cItem = 'citm', // defined in AERegistry.r
- ; cFile = 'file', // defined in AERegistry.r
- cAliasFile EQU 'alia'
- cApplicationFile EQU 'appf'
- cControlPanelFile EQU 'ccdv'
- cDeskAccessoryFile EQU 'dafi'
- cDocumentFile EQU 'docf'
- cFontFile EQU 'fntf'
- cSoundFile EQU 'sndf'
- cClippingFile EQU 'clpf'
- cContainer EQU 'ctnr'
- cDesktop EQU 'cdsk'
- cSharableContainer EQU 'sctr'
- cDisk EQU 'cdis'
- cFolder EQU 'cfol'
- cSuitcase EQU 'stcs'
- cAccessorySuitcase EQU 'dsut'
- cFontSuitcase EQU 'fsut'
- cTrash EQU 'ctrs'
- cDesktopPrinter EQU 'dskp'
- cContentSpace EQU 'dwnd' ; cWindow = 'cwin', // defined in AERegistry.r
- cContainerWindow EQU 'cwnd'
- cInfoWindow EQU 'iwnd'
- cSharingWindow EQU 'swnd'
- cStatusWindow EQU 'qwnd'
- cClippingWindow EQU 'lwnd'
- cPreferencesWindow EQU 'pwnd'
- cDTPWindow EQU 'dtpw'
- cProcess EQU 'prcs'
- cAccessoryProcess EQU 'pcda'
- cApplicationProcess EQU 'pcap'
- cGroup EQU 'sgrp'
- cUser EQU 'cuse' ; cApplication = 'capp', // defined in AERegistry.r
- cSharingPrivileges EQU 'priv'
- cPreferences EQU 'cprf'
- cLabel EQU 'clbl' ; For use by viewer search engines:
- cOnlineDisk EQU 'cods'
- cOnlineLocalDisk EQU 'clds'
- cOnlineRemoteDisk EQU 'crds' ; Miscellaneous class definitions
- cEntireContents EQU 'ects' ;•• BREADCRUMB pmc - also defined in EntireContents.h
- cIconFamily EQU 'ifam'
-
-
- ; //////////////////////////////////////
- ; Properties
- ; //////////////////////////////////////
-
-
-
- ; Properties of class cItem (really cObject)
-
- ; pBounds = 'pbnd', // defined in AERegistry.r
- pComment EQU 'comt'
- pContainer EQU 'ctnr'
- pContentSpace EQU 'dwnd'
- pCreationDateOld EQU 'crtd' ; to support pre-Finder 8 scripts
- pCreationDate EQU 'ascd' ; from File Commands OSAX
- pDescription EQU 'dscr'
- pDisk EQU 'cdis'
- pFolderOld EQU 'cfol' ; to support pre-Finder 8 scripts
- pFolder EQU 'asdr' ; from File Commands OSAX
- pIconBitmap EQU 'iimg' ; pID = 'ID ', // defined in AERegistry.r
- pInfoWindow EQU 'iwnd'
- pKind EQU 'kind'
- pLabelIndex EQU 'labi'
- pModificationDateOld EQU 'modd' ; to support pre-Finder 8 scripts
- pModificationDate EQU 'asmo' ; from File Commands OSAX
- ; pName = 'pnam', // defined in AERegistry.r
- pPhysicalSize EQU 'phys'
- pPosition EQU 'posn'
- pIsSelected EQU 'issl'
- pSize EQU 'ptsz' ; pPointSize defined in AERegistry.r
- pWindow EQU 'cwin'
- pPreferencesWindow EQU 'pwnd'
-
- ; Properties of class cFile (subclass of cItem)
-
- pFileCreator EQU 'fcrt'
- pFileType EQU 'asty' ; from File Commands OSAX
- pFileTypeOld EQU 'fitp' ; to support pre-Finder 8 scripts
- pIsLocked EQU 'aslk' ; from File Commands OSAX
- pIsLockedOld EQU 'islk' ; to support pre-Finder 8 scripts
- ; pIsStationeryPad = 'pspd', // defined in AERegistry.r
- ; pVersion = 'vers', // defined in AERegistry.r
- pProductVersion EQU 'ver2'
-
- ; Properties of class cAliasFile (subclass of cFile)
-
- pOriginalItem EQU 'orig'
- ; Properties of class cApplicationFile (subclass of cFile)
-
- pMinAppPartition EQU 'mprt'
- pAppPartition EQU 'appt'
- pSuggestedAppPartition EQU 'sprt'
- pIsScriptable EQU 'isab'
-
- ; Properties of class cControlPanel (Views CP only) (subclass of cFile)
- ; Note: the other view-like preference settings are not available in the Views
- ; control panel. These properties are only offered here for backward compatability.
- ; To set the full range of Finder Preferences, use the Preferences object.
-
-
-
- pShowFolderSize EQU 'sfsz' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowComment EQU 'scom' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowDate EQU 'sdat' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowCreationDate EQU 'scda' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowKind EQU 'sknd' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowLabel EQU 'slbl' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowSize EQU 'ssiz' ; Moved to a per-folder basis in Finder 8.0 HIS
- pShowVersion EQU 'svrs' ; Moved to a per-folder basis in Finder 8.0 HIS
- pSortDirection EQU 'sord'
- pShowDiskInfo EQU 'sdin' ; Always on in Finder 8.0 HIS
- pListViewIconSize EQU 'lvis' ; Moved to a per-folder basis in Finder 8.0 HIS
- pGridIcons EQU 'fgrd' ; Moved to a per-folder basis in Finder 8.0 HIS
- pStaggerIcons EQU 'fstg' ; No longer part of the Finder 8.0 HIS
- pViewFont EQU 'vfnt'
- pViewFontSize EQU 'vfsz'
- ; Properties of class cContainer (subclass of cItem)
-
- pCompletelyExpanded EQU 'pexc'
- pContainerWindow EQU 'cwnd'
- pEntireContents EQU 'ects'
- pExpandable EQU 'pexa'
- pExpanded EQU 'pexp'
- pPreviousView EQU 'svew' ; pSelection = 'sele', // defined in AERegistry.r
- pView EQU 'pvew'
- pIconSize EQU 'lvis' ; defined above
- pKeepArranged EQU 'arrg'
- pKeepArrangedBy EQU 'arby'
- ; Properties of class cDesktop (subclass of cContainer)
-
- pStartupDisk EQU 'sdsk'
- pTrash EQU 'trsh' ; NOTE can't use cTrash
- ; Properties of class cSharableContainer (subclass of cContainer)
-
- pOwner EQU 'sown'
- pOwnerPrivileges EQU 'ownr'
- pGroup EQU 'sgrp'
- pGroupPrivileges EQU 'gppr'
- pGuestPrivileges EQU 'gstp'
- pArePrivilegesInherited EQU 'iprv'
- pExported EQU 'sexp'
- pMounted EQU 'smou'
- pSharingProtection EQU 'spro'
- pSharing EQU 'shar'
- pSharingWindow EQU 'swnd'
- ; Properties of class cDisk (subclass of cSharableContainer)
-
- pCapacity EQU 'capa'
- pEjectable EQU 'isej'
- pFreeSpace EQU 'frsp'
- pLocal EQU 'isrv'
- pIsStartup EQU 'istd'
- ; Properties of class cTrash (subclass of cSharableContainer)
-
- pWarnOnEmpty EQU 'warn'
- ; Properties of class cWindow (subclass of cContentSpace)
-
- ; pBounds = 'pbnd', // defined in AERegistry.r
- ; pHasCloseBox = 'hclb', // defined in AERegistry.r
- ; pIsFloating = 'isfl', // defined in AERegistry.r
- ; pIndex = 'pidx', // defined in AERegistry.r
- ; pIsModal = 'pmod', // defined in AERegistry.r
- ; pPosition = 'posn', // defined above
- ; pIsResizable = 'prsz', // defined in AERegistry.r
- ; pHasTitleBar = 'ptit', // defined in AERegistry.r
- ; pVisible = 'pvis', // defined in AERegistry.r
- ; pIsZoomable = 'iszm', // defined in AERegistry.r
- ; pIsZoomed = 'pzum', // defined in AERegistry.r
- pIsZoomedFull EQU 'zumf'
- pIsPopup EQU 'drwr'
- pIsPulledOpen EQU 'pull' ; only applies to popup windows
- pIsCollapsed EQU 'wshd' ; only applies to normal windows
- ; Properties of class cContainerWindow (subclass of cWindow)
-
- pObject EQU 'cobj'
- ; Properties of class cSharingWindow (subclass of cWindow)
-
- pSharableContainer EQU 'sctr'
- ; Properties of networking support
-
- pFileShareOn EQU 'fshr'
- pFileShareStartingUp EQU 'fsup'
- pProgramLinkingOn EQU 'iac '
- ; Properties of class cPreferencesWindow (subclass of cWindow)
-
- ; pShowFolderSize = 'sfsz', // defined above for Views CP
- ; pShowComment = 'scom', // defined above for Views CP
- ShowModificationDate EQU 'sdat' ; pShowDate defined above for Views CP
- ; pShowKind = 'sknd', // defined above for Views CP
- ; pShowLabel = 'slbl', // defined above for Views CP
- ; pShowSize = 'ssiz', // defined above for Views CP
- ; pShowVersion = 'svrs', // defined above for Views CP
- ; pShowCreationDate = 'scda', // Removed from Finder 8.0 HIS
- ; pShowFileType = 'sfty', // Removed from Finder 8.0 HIS
- ; pShowFileCreator = 'sfcr', // Removed from Finder 8.0 HIS
- ; pListViewIconSize = 'lvis', // defined above for Views CP
- ; pGridIcons = 'fgrd', // defined above for Views CP
- ; pStaggerIcons = 'fstg', // defined above for Views CP
- ; pViewFont = 'vfnt', // defined above for Views CP
- ; pViewFontSize = 'vfsz', // defined above for Views CP
- pUseRelativeDate EQU 'urdt' ; Moved to a per-folder basis in Finder 8.0 HIS
- pDelayBeforeSpringing EQU 'dela'
- pSpringOpenFolders EQU 'sprg'
- pUseShortMenus EQU 'usme'
- pUseWideGrid EQU 'uswg'
- pLabel1 EQU 'lbl1'
- pLabel2 EQU 'lbl2'
- pLabel3 EQU 'lbl3'
- pLabel4 EQU 'lbl4'
- pLabel5 EQU 'lbl5'
- pLabel6 EQU 'lbl6'
- pLabel7 EQU 'lbl7' ; pObject = cObject // defined above
- ; Properties of class cProcess (subclass of cObject)
-
- ; pName = 'pnam', // defined in AERegistry.r
- pFile EQU 'file' ; pCreatorType = 'fcrt', // defined above
- ; pFileType = 'asty', // defined above
- ; pIsFrontProcess = 'pisf', // defined in AERegistry.r
- ; pAppPartition = 'appt', // defined above
- pPartitionSpaceUsed EQU 'pusd' ; pIsScriptable = 'isab', // defined in AERegistry.r
- ; pVisible = 'pvis' // defined in AERegistry.r
- pLocalAndRemoteEvents EQU 'revt'
- ; Properties of class cAccessoryProcess (subclass of cProcess)
-
- pDeskAccessoryFile EQU 'dafi'
- ; Properties of class cApplicationProcess (subclass of cProcess)
-
- pApplicationFile EQU 'appf'
-
- ; Properties of class cUser (subclass of cObject)
-
- ; pBounds
- ; pIconBitmap
- ; pLabelIndex
- ; pName
- ; pPosition
- ; pWindow = cWindow, // defined above
- pCanConnect EQU 'ccon'
- pCanChangePassword EQU 'ccpw'
- pCanDoProgramLinking EQU 'ciac'
- pIsOwner EQU 'isow'
- pARADialIn EQU 'arad'
- pShouldCallBack EQU 'calb'
- pCallBackNumber EQU 'cbnm'
-
- ; Properties of class cApplication (subclass of cObject)
- ; NOTE: properties for the special folders must match their respective kXXXFolderType constants
-
-
-
- pAboutMacintosh EQU 'abbx'
- pAppleMenuItemsFolder EQU 'amnu' ; kAppleMenuFolderType
- ; pClipboard = 'pcli', // defined in AERegistry.r
- pControlPanelsFolder EQU 'ctrl' ; kControlPanelFolderType
- pDesktop EQU 'desk' ; kDesktopFolderType
- pExtensionsFolder EQU 'extn' ; kExtensionFolderType
- ; pFileShareOn = 'fshr', // defined above
- pFinderPreferences EQU 'pfrp'
- pFontsFolder EQU 'ffnt' ; pIsFrontProcess = 'pisf', // defined in AERegistry.r
- ; pInsertionLoc = 'pins', // defined in AERegistry.r
- pLargestFreeBlock EQU 'mfre'
- pPreferencesFolder EQU 'pref' ; kPreferencesFolderType
- ; pProductVersion = 'ver2', // defined above
- ; pUserSelection = 'pusl', // defined in AERegistry.r
- ; pFileShareStartingUp = 'fsup', // defined above
- pShortCuts EQU 'scut'
- pShutdownFolder EQU 'shdf'
- pStartupItemsFolder EQU 'strt' ; kStartupFolderType
- pSystemFolder EQU 'macs' ; kSystemFolderType
- pTemporaryFolder EQU 'temp' ; kTemporaryFolderType
- ; pVersion = 'vers', // defined in AERegistry.r
- pViewPreferences EQU 'pvwp' ; pVisible = 'pvis', // defined in AERegistry.r
- pStartingUp EQU 'awak' ; private property to tell whether the Finder is fully up and running
- ; Properties of class cSharingPrivileges (subclass of cObject)
-
- pSeeFiles EQU 'prvr'
- pSeeFolders EQU 'prvs'
- pMakeChanges EQU 'prvw'
-
- ; Properties of class cPreferences (subclass of cObject)
- ; enum {
- ; pShowFolderSize = 'sfsz', // defined above for Views CP
- ; pShowComment = 'scom', // defined above for Views CP
- ; pShowModificationDate = pShowDate, // pShowDate defined above for Views CP
- ; pShowKind = 'sknd', // defined above for Views CP
- ; pShowLabel = 'slbl', // defined above for Views CP
- ; pShowSize = 'ssiz', // defined above for Views CP
- ; pShowVersion = 'svrs', // defined above for Views CP
- ; pShowCreationDate = 'scda', // defined in cPreferencesWindow
- ; pShowFileType = 'sfty', // defined in cPreferencesWindow
- ; pShowFileCreator = 'sfcr', // defined in cPreferencesWindow
- ; pListViewIconSize = 'lvis', // defined above for Views CP
- ; pGridIcons = 'fgrd', // defined above for Views CP
- ; pStaggerIcons = 'fstg', // defined above for Views CP
- ; pViewFont = 'vfnt', // defined above for Views CP
- ; pViewFontSize = 'vfsz', // defined above for Views CP
- ; pUseRelativeDate = 'urdt', // defined in cPreferencesWindow
- ; pDelayBeforeSpringing = 'dela', // defined in cPreferencesWindow
- ; pShowMacOSFolder = 'sosf', // defined in cPreferencesWindow
- ; pUseShortMenus = 'usme', // defined in cPreferencesWindow
- ; pUseCustomNewMenu = 'ucnm', // defined in cPreferencesWindow
- ; pShowDesktopInBackground = 'sdtb', // defined in cPreferencesWindow
- ; pActivateDesktopOnClick = 'adtc', // defined in cPreferencesWindow
- ; pLabel1 = 'lbl1', // defined in cPreferencesWindow
- ; pLabel2 = 'lbl2', // defined in cPreferencesWindow
- ; pLabel3 = 'lbl3', // defined in cPreferencesWindow
- ; pLabel4 = 'lbl4', // defined in cPreferencesWindow
- ; pLabel5 = 'lbl5', // defined in cPreferencesWindow
- ; pLabel6 = 'lbl6', // defined in cPreferencesWindow
- ; pLabel7 = 'lbl7', // defined in cPreferencesWindow
- ; pWindow = cWindow // defined above
- ; };
-
-
-
-
- ; Properties of class cLabel (subclass of cObject)
- ; enum {
- ; pName = 'pnam', // defined in AERegistry.r
- ; pColor = 'colr', // defined in AERegistry.r
- ; };
-
-
-
- ; Misc Properties
-
- pSmallIcon EQU 'smic'
- pSmallButton EQU 'smbu'
- pLargeButton EQU 'lgbu'
- pGrid EQU 'grid'
-
- ; //////////////////////////////////////
- ; Enumerations defined by the Finder
- ; //////////////////////////////////////
-
-
-
-
- enumViewBy EQU 'vwby'
- enumGestalt EQU 'gsen'
- enumConflicts EQU 'cflc'
- enumExistingItems EQU 'exsi'
- enumOlderItems EQU 'oldr'
-
- enumDate EQU 'enda'
- enumAnyDate EQU 'anyd'
- enumToday EQU 'tday'
- enumYesterday EQU 'yday'
- enumThisWeek EQU 'twek'
- enumLastWeek EQU 'lwek'
- enumThisMonth EQU 'tmon'
- enumLastMonth EQU 'lmon'
- enumThisYear EQU 'tyer'
- enumLastYear EQU 'lyer'
- enumBeforeDate EQU 'bfdt'
- enumAfterDate EQU 'afdt'
- enumBetweenDate EQU 'btdt'
- enumOnDate EQU 'ondt'
-
- enumAllDocuments EQU 'alld'
- enumFolders EQU 'fold'
- enumAliases EQU 'alia'
- enumStationery EQU 'stat'
-
- enumWhere EQU 'wher'
- enumAllLocalDisks EQU 'aldk'
- enumAllRemoteDisks EQU 'ardk'
- enumAllDisks EQU 'alld'
- enumAllOpenFolders EQU 'aofo'
-
-
- enumIconSize EQU 'isiz'
- enumSmallIconSize EQU 'smic'
- enumMiniIconSize EQU 'miic'
- enumLargeIconSize EQU 'lgic'
-
- enumSortDirection EQU 'sodr'
- enumSortDirectionNormal EQU 'snrm'
- enumSortDirectionReverse EQU 'srvs'
-
- ; //////////////////////////////////////
- ; Types defined by the Finder
- ; //////////////////////////////////////
-
-
-
-
- typeIconFamily EQU 'ifam' ; An AEList of typeIconAndMask, type8BitIcon, & c.
- typeIconAndMask EQU 'ICN#'
- type8BitIcon EQU 'icl8'
- type4BitIcon EQU 'icl4'
- typeSmallIconAndMask EQU 'ics#'
- typeSmall8BitIcon EQU 'ics8'
- typeSmall4BitIcon EQU 'ics4'
- typeRelativeTime EQU 'rtim'
- typeConceptualTime EQU 'timc'
-
- ; //////////////////////////////////////
- ; Keywords defined by the Finder
- ; //////////////////////////////////////
-
-
-
-
- keyIconAndMask EQU 'ICN#'
- key8BitIcon EQU 'icl8'
- key4BitIcon EQU 'icl4'
- keySmallIconAndMask EQU 'ics#'
- keySmall8BitIcon EQU 'ics8'
- keySmall4BitIcon EQU 'ics4'
- keyAEUsing EQU 'usin'
- keyAEReplacing EQU 'alrp'
- keyAENoAutoRouting EQU 'rout'
- keyLocalPositionList EQU 'mvpl'
- keyGlobalPositionList EQU 'mvpg'
-
- ; //////////////////////////////////////
- ; New prepositions used by the Finder
- ; //////////////////////////////////////
-
-
-
-
- keyASPrepositionHas EQU 'has '
- keyAll EQU 'kyal'
- keyOldFinderItems EQU 'fsel'
-
- ; //////////////////////////////////////
- ; New key forms used by the Finder
- ; //////////////////////////////////////
-
-
-
-
- formAlias EQU 'alis'
- formCreator EQU 'fcrt'
-
-
- ; //////////////////////////////////////
- ; Finder error codes
- ; //////////////////////////////////////
-
-
-
-
- errFinderIsBusy EQU -15260
- errFinderWindowNotOpen EQU -15261
- errFinderCannotPutAway EQU -15262
- errFinderWindowMustBeIconView EQU -15263 ; RequireWindowInIconView
- errFinderWindowMustBeListView EQU -15264 ; RequireWindowInListView
- errFinderCantMoveToDestination EQU -15265
- errFinderCantMoveSource EQU -15266
- errFinderCantOverwrite EQU -15267
- errFinderIncestuousMove EQU -15268 ; Could just use errFinderCantMoveSource
- errFinderCantMoveToAncestor EQU -15269 ; Could also use errFinderCantMoveSource
- errFinderCantUseTrashedItems EQU -15270
- errFinderItemAlreadyInDest EQU -15271 ; Move from folder A to folder A
- errFinderUnknownUser EQU -15272 ; Includes unknown group
- errFinderSharePointsCantInherit EQU -15273
- errFinderWindowWrongType EQU -15274
- errFinderPropertyNowWindowBased EQU -15275
- errFinderCorruptOpenFolderList EQU -15276
- errFinderNoInvisibleFiles EQU -15277
- errFinderBoundsWrong EQU -15278
- errAEValueOutOfRange EQU -15279
- errFinderPropertyDoesNotApply EQU -15280
- errFinderFileSharingMustBeOn EQU -15281
- errFinderMustBeActive EQU -15282
- errFinderVolumeNotFound EQU -15283 ; more descriptive than what we get with nsvErr
- errFinderLockedItemsInTrash EQU -15284 ; there are some locked items in the trash
- errFinderOnlyLockedItemsInTrash EQU -15285 ; all the items (except folders) in the trash are locked
- errFinderProgramLinkingMustBeOn EQU -15286
- errFinderLastReserved EQU -15379
-
-
-
-
-
- ENDIF ; __FINDERREGISTRY__
-
-